
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>




<title>Insert title here</title>
<link href="/designinclass/css/formain.css" rel="stylesheet"
	type="text/css" />
<script src="/designinclass/js/formain.js" type="text/javascript">
	
</script>
<script type="text/javascript">
	function acc() {
		var a;
		a = "${temp}";
		if (a > 0) {
			alert("请先登录");
		}
	}
</script>

</head>
<body onload="acc()">

	<div id="index">

		<div id="top">
			<div>
				<form method="post" action="/designinclass/IniServlet">
					<input type="text" name="engine" /> <input type="submit" value="搜索" />

				</form>
			</div>
			<ul>

				<li onclick="log()"><c:if test="${empty username}" var="young"
						scope="session">登录</c:if></li>
				<li><c:if test="${!empty username}" var="young1"
						scope="session">欢迎您:${username}</c:if></li>


				<li><a href="/designinclass/pages/register.jsp">注册</a></li>
			</ul>
		</div>
		<div id="middle">
			<div id="left"></div>
			<div id="center">
				选择要上传的文件：
				<form action="/designinclass/UpFileServlet" method="post" enctype="multipart/form-data">
					<input type="file" name="boy" size="45"> <br>
					<input type="submit" name="g" value="提交" />


				</form>
				${upfile}

			</div>
			<div id="right"></div>


		</div>
		<div id="bottom"></div>
	</div>

	<div id="dialogue" style="position: absolute; left: 500px; top: 160px"
		onmousedown="$(this,event)">
		选择要上传的文件：
		


	</div>

	<div id="light"></div>



</body>
</html>